<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MiXiM: Packet Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">MiXiM
   &#160;<span id="projectnumber">2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a00168.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">Packet Class Reference<div class="ingroups"><a class="el" href="a00514.html">utils  -  utility classes</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Packet" -->
<p>Class that keeps track of the number of packets sent.  
 <a href="a00168.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00495_source.html">Packet.h</a>&gt;</code></p>

<p><a href="a00923.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a04f70d419727498eaa1ea1765669729c"></a><!-- doxytag: member="Packet::Packet" ref="a04f70d419727498eaa1ea1765669729c" args="(long bitLength, long rcvd=0, long sent=0)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00168.html#a04f70d419727498eaa1ea1765669729c">Packet</a> (long bitLength, long rcvd=0, long sent=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa9a757930db7acb04bdf3e894af22a42"></a><!-- doxytag: member="Packet::getNbPacketsReceived" ref="aa9a757930db7acb04bdf3e894af22a42" args="() const " -->
double&#160;</td><td class="memItemRight" valign="bottom"><b>getNbPacketsReceived</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4383b86f4ea19b009daf453c405b6a8b"></a><!-- doxytag: member="Packet::getNbBitsReceived" ref="a4383b86f4ea19b009daf453c405b6a8b" args="() const " -->
double&#160;</td><td class="memItemRight" valign="bottom"><b>getNbBitsReceived</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7723f296d13b4e81714830ab1b29bd53"></a><!-- doxytag: member="Packet::getNbPacketsReceivedNoRS" ref="a7723f296d13b4e81714830ab1b29bd53" args="() const " -->
double&#160;</td><td class="memItemRight" valign="bottom"><b>getNbPacketsReceivedNoRS</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a883ac7b105b7982c9a05a9e508cd5a96"></a><!-- doxytag: member="Packet::getNbPacketsSent" ref="a883ac7b105b7982c9a05a9e508cd5a96" args="() const " -->
double&#160;</td><td class="memItemRight" valign="bottom"><b>getNbPacketsSent</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad0a325d78b3d7fdec46400465c4313e7"></a><!-- doxytag: member="Packet::getNbBitsSent" ref="ad0a325d78b3d7fdec46400465c4313e7" args="() const " -->
double&#160;</td><td class="memItemRight" valign="bottom"><b>getNbBitsSent</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aff62053b8b1ca2cb6675357cca237dcf"></a><!-- doxytag: member="Packet::setNbPacketsReceived" ref="aff62053b8b1ca2cb6675357cca237dcf" args="(int n)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>setNbPacketsReceived</b> (int n)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a38d9b51ed06fc2523cf9f61b7d086b52"></a><!-- doxytag: member="Packet::setNbPacketsReceivedNoRS" ref="a38d9b51ed06fc2523cf9f61b7d086b52" args="(int n)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>setNbPacketsReceivedNoRS</b> (int n)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a924b95edc7db36553a30060619744e2f"></a><!-- doxytag: member="Packet::setNbPacketsSent" ref="a924b95edc7db36553a30060619744e2f" args="(int n)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>setNbPacketsSent</b> (int n)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac9a159a175c4cb4402f4c9876c1e7746"></a><!-- doxytag: member="Packet::setBitLength" ref="ac9a159a175c4cb4402f4c9876c1e7746" args="(long bitLength)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>setBitLength</b> (long bitLength)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6ecb8c2179097a35d353b0ca07f8aa14"></a><!-- doxytag: member="Packet::getBitLength" ref="a6ecb8c2179097a35d353b0ca07f8aa14" args="() const " -->
long&#160;</td><td class="memItemRight" valign="bottom"><b>getBitLength</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae534c58c584a1c041578e9fa1fe50b78"></a><!-- doxytag: member="Packet::setHost" ref="ae534c58c584a1c041578e9fa1fe50b78" args="(const LAddress::L3Type &amp;h)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>setHost</b> (const <a class="el" href="a00117.html#ad85cd9e8d9e7e9cd5d02dd740c4a12a4">LAddress::L3Type</a> &amp;h)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3b8881c0e04d26bef60df946d64690ba"></a><!-- doxytag: member="Packet::getHost" ref="a3b8881c0e04d26bef60df946d64690ba" args="() const " -->
const <a class="el" href="a00117.html#ad85cd9e8d9e7e9cd5d02dd740c4a12a4">LAddress::L3Type</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getHost</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa1998c3505551a4a60196656e32e0b6c"></a><!-- doxytag: member="Packet::isSent" ref="aa1998c3505551a4a60196656e32e0b6c" args="() const " -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isSent</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6177c52d2da19fe8d0000ffe85babcf0"></a><!-- doxytag: member="Packet::setPacketSent" ref="a6177c52d2da19fe8d0000ffe85babcf0" args="(bool isSent)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>setPacketSent</b> (bool isSent)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5c7de72a3b15448b37a63633903fb370"></a><!-- doxytag: member="Packet::info" ref="a5c7de72a3b15448b37a63633903fb370" args="() const " -->
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00168.html#a5c7de72a3b15448b37a63633903fb370">info</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables inspection. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9b4ea2f302db59eb0ac0dd2a3f2048d6"></a><!-- doxytag: member="Packet::nbPacketsReceived" ref="a9b4ea2f302db59eb0ac0dd2a3f2048d6" args="" -->
long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00168.html#a9b4ea2f302db59eb0ac0dd2a3f2048d6">nbPacketsReceived</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">number of packets generated. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9fc28c2358463af644f6a60a1d4ee186"></a><!-- doxytag: member="Packet::nbPacketsReceivedNoRS" ref="a9fc28c2358463af644f6a60a1d4ee186" args="" -->
long&#160;</td><td class="memItemRight" valign="bottom"><b>nbPacketsReceivedNoRS</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af5fd55700467c7225c18f6548bdfbc8d"></a><!-- doxytag: member="Packet::nbPacketsSent" ref="af5fd55700467c7225c18f6548bdfbc8d" args="" -->
long&#160;</td><td class="memItemRight" valign="bottom"><b>nbPacketsSent</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa4dd6ec7fbc2d968a43c076e9bd06167"></a><!-- doxytag: member="Packet::packetBitLength" ref="aa4dd6ec7fbc2d968a43c076e9bd06167" args="" -->
long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00168.html#aa4dd6ec7fbc2d968a43c076e9bd06167">packetBitLength</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The size of each of the received and sent packet. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a15e1758fc289da0e75ca50764ecb7adc"></a><!-- doxytag: member="Packet::sent" ref="a15e1758fc289da0e75ca50764ecb7adc" args="" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>sent</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae8345d93e7f7e4ca99e12661c7e30625"></a><!-- doxytag: member="Packet::host" ref="ae8345d93e7f7e4ca99e12661c7e30625" args="" -->
<a class="el" href="a00117.html#ad85cd9e8d9e7e9cd5d02dd740c4a12a4">LAddress::L3Type</a>&#160;</td><td class="memItemRight" valign="bottom"><b>host</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Class that keeps track of the number of packets sent. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>Andreas Koepke, Karl Wessel </dd></dl>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li>D:/Projects/MiXiM/extsrc/mixim/src/modules/utility/<a class="el" href="a00495_source.html">Packet.h</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="a00168.html">Packet</a>      </li>

    <li class="footer">Generated on Tue Mar 5 2013 21:26:32 for MiXiM by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
